<?php

class DadminModule extends CWebModule
{
	public function init()
	{
		$this->setImport(array(
			'dadmin.models.*',
			'dadmin.components.*',
		));
    Yii::app()->setComponents(array(
      'errorHandler'=>array(
        'errorAction'=>'dadmin/default/error',
      ),
    ));

	}

	public function beforeControllerAction($controller, $action)
	{
		if(parent::beforeControllerAction($controller, $action))
		{
			return true;
		}
		else
			return false;
	}
}